/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Point;

/**
 *
 * @author Root
 */
public class TestMyPoint {

    public static void main(String[] args) {
        MyPoint start = new MyPoint(10, 10);
        MyPoint end = new MyPoint(20, 30);

        System.out.println("Start point is " + start.toString());
        System.out.println("End point is " + end.toString());
        System.out.println();
        MyPoint stray = new MyPoint();
        stray = end;

        System.out.println("End point is " + end.toString());
        System.out.println("Stray point is " + stray.toString());
        System.out.println();
        end = new MyPoint(47, 50);
        stray = end;
        System.out.println("Stray point is " + stray.toString());
        System.out.println("End point is " + end.toString());
        System.out.println("Start point is " + start.toString());


    }
}
